package com.kun.hosp.service;

import com.kun.model.entity.hosp.Department;
import com.kun.model.vo.hosp.DepartmentQueryVo;
import com.kun.model.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author zhoukun
 * @Date 2021/5/3 12:06
 * 科室
 */
public interface DepartmentService {
    /**
     * 上传科室信息
     * @param paramMap
     */
    void saveDepartmen(Map<String, Object> paramMap);
    /**
     * 分页查询
     * @param  paramMap
     * @return
     */
    Page<Department> selectPage(Map<String, Object> paramMap);
    /**
     * 删除科室
     * @param depcode
     */
    void remove(String depcode);

    /**
     * 查询所有科室
     * @param hoscode
     * @return
     */
    List<DepartmentVo> findDeptTree(String hoscode);

    /**
     * 查询科室名称
     * @param hoscode
     * @param depcode
     * @return
     */
    String getDepName(String hoscode, String depcode);
}
